package cn.sxw.android.base.mvp

import android.content.Intent

interface IView {
    /**
     * 显示加载
     */
    fun showLoading()

    /**
     * 隐藏加载
     */
    fun hideLoading()

    /**
     * 显示信息
     */
    fun showMessage(message: String?)

    /**
     * 跳转activity
     */
    fun launchActivity(intent: Intent?, killIt: Boolean = false)

    /**
     * 跳转activity
     */
    fun launchActivity(clz: Class<*>?, killIt: Boolean = false)

    /**
     * 杀死自己
     */
    fun killMyself()

    /**
     * 判断网络连接
     *
     * @return
     */
    fun isNetworkConnected(): Boolean
}